PROJECT_DIR=~/working/niteco
export PROJECT_DIR

NITECO_ENVIRONMENTS=$PROJECT_DIR/environments
export NITECO_ENVIRONMENTS

JAVA_HOME=$PROJECT_DIR/environments/jdk1.6.0_45
export JAVA_HOME

JRE_HOME=$JAVA_HOME
export JRE_HOME

M2_HOME=$NITECO_ENVIRONMENTS/apache-maven-3.1.0
export M2_HOME

WORKING_DIR=$PROJECT_DIR/serviceplus
export WORKING_DIR

PLAY_PATH=$PROJECT_DIR/environments/play-1.2.5
export PLAY_PATH

PATH=$M2_HOME/bin:$JAVA_HOME/bin:$JRE_HOME/bin:$PLAY_PATH:$PATH
export PATH


cd $WORKING_DIR/trunk

TOMCAT=$WORKING_DIR/packaging/target/tomcat
ACCOUNT=$WORKING_DIR/trunk/frontend/account-webapp/
BACKOFFICE=$WORKING_DIR/trunk/frontend/backoffice/

alias cdenv='cd $PROJECT_DIR/environments'
alias cdhome='cd ~'
alias cdback='cd $OLDPWD'
alias cdtomcat='cd $TOMCAT'
alias cdfrontend='cd $WORKING_DIR/frontend'
alias cdaccount='cd $ACCOUNT'
alias cdbackoffice='cd $BACKOFFICE'
alias cdripple='cd $WORKING_DIR/frontend/ripple/trunk'


alias runqpid='nohup $NITECO_ENVIRONMENTS/qpid-0.20/bin/qpid-server > $PROJECT_DIR/qpid.log &'
alias runtomcat='$TOMCAT/bin/catalina.sh run'
alias runaccount='cd $ACCOUNT&&play run'
